package com.flot.yazb.model.fate;

import com.flot.yazb.base.model.BModel;
import com.flot.yazb.base.client.RetrofitFactory;
import com.flot.yazb.aop.stub.RMCallback;
import com.flot.yazb.aop.stub.RMResponse;
import com.flot.yazb.retrofit.service.BService;

/**
 * Created by fengdongfei on 2017/8/31.
 */

public class FateModel extends BModel {

    public static void getFateList(final Transit<FateModel[]> incubator) {
        RetrofitFactory.getInstance()
                .create(BService.UserService.class)
                .getFateList()
                .enqueue(new RMCallback<RMResponse<FateModel[]>>(incubator.getContext()) {
                    @Override
                    protected void onSuccess(RMResponse<FateModel[]> result) {
                        incubator.onBorn(result.content, result.code(), result.message());
                    }

                    @Override
                    protected void onFail(String errorCode, String errorInfo) {
                        incubator.onBorn(null, errorCode, errorInfo);
                    }
                });
    }

        public String age;
        public String mid;
        public String name;
        public String thumb;
        public String aihao;
        public String tezheng;
        public String brith;
        public String beizhu;
        public String province;
        public String city;

}
